<html>
<head><meta charset="utf-8"><title>vscode version in console · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode.20version.20in.20console.html">vscode version in console</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="188547345"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode%20version%20in%20console/near/188547345" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Edwin Cheng <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode.20version.20in.20console.html#188547345">(Feb 19 2020 at 14:14)</a>:</h4>
<p><span class="user-mention" data-user-id="258149">@std::Veetaha</span> Do you know why the output of VSCode console shown something like :</p>
<div class="codehilite"><pre><span></span>[Extension Host] rust-analyzer --version output: &quot;rust-analyzer 20252ef&quot;
</pre></div>


<p>but my git HEAD is pointing to <code>61fdcc5de</code> which is not matched ?<br>
But I am sure I built an using the HEAD commit one.</p>



<a name="188548437"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode%20version%20in%20console/near/188548437" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode.20version.20in.20console.html#188548437">(Feb 19 2020 at 14:27)</a>:</h4>
<p>I don't think this is connected with VSCode. I suppose you have the following setting: <code>"rust-analyzer.serverPath": "rust-analyzer"</code>, so the extension just runs <code>rust-analyzer --version</code>, you can try it in your terminal yourself</p>



<a name="188549105"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode%20version%20in%20console/near/188549105" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Edwin Cheng <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode.20version.20in.20console.html#188549105">(Feb 19 2020 at 14:35)</a>:</h4>
<p>Oh I see. The commit number is written to environment variable by <a href="http://build.rs" target="_blank" title="http://build.rs">build.rs</a> but somehow it didn't rerun when I rebased and built the code .. <span aria-label="thinking" class="emoji emoji-1f914" role="img" title="thinking">:thinking:</span></p>



<a name="188549825"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode%20version%20in%20console/near/188549825" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode.20version.20in.20console.html#188549825">(Feb 19 2020 at 14:42)</a>:</h4>
<p>Yeah, <a href="http://build.rs" target="_blank" title="http://build.rs">build.rs</a> does the thing, it needs investigation</p>



<a name="188564420"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/vscode%20version%20in%20console/near/188564420" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/vscode.20version.20in.20console.html#188564420">(Feb 19 2020 at 17:16)</a>:</h4>
<p>You could add rerun-if-changed for the git HEAD ref and the branch ref that HEAD points to to fix this.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>